﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sgr.Sms
{
    /// <summary>
    /// 短信服务配置选项
    /// </summary>
    public class SmsOptions
    {
        /// <summary>
        /// 短信服务提供商
        /// </summary>
        public string Provider { get; set; } = string.Empty;

        /// <summary>
        /// 最大重试次数
        /// </summary>
        public int MaxRetryCount { get; set; } = 3;

        /// <summary>
        /// 重试间隔（秒）
        /// </summary>
        public int RetryIntervalSeconds { get; set; } = 5;

        /// <summary>
        /// 发送限制（每分钟）
        /// </summary>
        public int RateLimit { get; set; } = 60;

        /// <summary>
        /// 创建默认配置
        /// </summary>
        public static SmsOptions CreateDefault()
        {
            return new SmsOptions();
        }
    }
}